package com.example.kaiqiang.dagger2demo

data class FuckGoods(
        val _id: String,
        val createdAt: String,
        val desc: String,
        val images: Array<String>,
        val publishedAt: String,
        val source: String,
        val type: String,
        val url: String,
        val used: Boolean,
        val who: String

) {
    fun hasImg(): Boolean {
        return images != null&&images.isNotEmpty()
    }

    fun create() = createdAt.substring(0, 10)

}